package org.teremail.schema;


public abstract class AbstractDialect implements Dialect {

    public String getVarchar(int length) {
        return "VARCHAR(" + length + ")";
    }
    
    public String getBlob() {
        return "BLOB";
    }
    
    public String getTimestamp() {
        return "TIMESTAMP";
    }
    
    public String getTableName(String tableName) {
        return tableName;
    }

    public boolean isDuplicateKey(String state) {
        return "23505".equals(state);
    }

    public String createPagedQuery(String columns, String tables,
            String constraints, String orderBy, int pageNo, int pageSize) {
        String s = this.getClass().getSimpleName();
        throw new UnsupportedOperationException("Dialect: " + s + ", does not support paging");
    }

    public boolean isPagingSupported() {
        return false;
    }

    
}